<!doctype html>
<html>
<title>Whitespace after 'and': no functional syntax.</title>
<link rel="author" title="Simon Sapin" href="mailto:simon.sapin@exyr.org">
<style type="text/css">
  .a { color: green }
  @media all and(orientation) {
    .a { color: red }
  }
</style>
<p class=a> This line should be green.
